package com.lz.seata.service.impl;

import com.lz.seata.dao.IOrderDao;
import com.lz.seata.domain.Order;
import com.lz.seata.service.IOrderService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;

/**
 * @Description: OrderServiceImpl
 * @Date: 2020/5/4 12:03
 * @Author: LiZhen
 * @Version: 1.0
 */
@Transactional
@Service
public class OrderServiceImpl implements IOrderService{

    @Resource
    private IOrderDao orderDao;
    @Override
    public void create(Order order) {
        orderDao.save(order);
    }
}
